/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;

public final class ag extends RelativeLayout {
    public ag(Activity paramActivity) {
        super(paramActivity);
        bi localbi = bi.a(paramActivity);
        TextView localTextView;
        (localTextView = new TextView(paramActivity)).setId(cz.a());
        localTextView.setTextColor(-1);
        localTextView.setText(a.a(b.r));
        (localObject1 = new RelativeLayout.LayoutParams(-2, -2)).addRule(13, -1);
        addView(localTextView, (ViewGroup.LayoutParams) localObject1);
        Object localObject1 = new ProgressBar(paramActivity);
        AnimationDrawable localAnimationDrawable = new AnimationDrawable();
        Object localObject2;
        for (int i = 1; i < 13; ++i) {
            localObject2 = localbi.a("loading" + i + ".png");
            localAnimationDrawable.addFrame((Drawable) localObject2, 75);
        }
        localAnimationDrawable.setOneShot(false);
        ((ProgressBar) localObject1).setIndeterminateDrawable(localAnimationDrawable);
        i = cz.a(paramActivity, 32.5F);
        (localObject2 = new RelativeLayout.LayoutParams(i, i)).addRule(0, localTextView.getId());
        addView((View) localObject1, (ViewGroup.LayoutParams) localObject2);
    }
}